<!-- 损益分析 -->
<template>
  <div>
    <el-tabs type="card">
      <el-tab-pane label="原料类别">
        <div class="clas_All">
          <costpro :dataOne="AnalysisENDList"></costpro>
        </div>
      </el-tab-pane>
      <el-tab-pane label="工作组">
        <div class="clas_All">
          <costproOne :dataOne="AnalysisENDList"></costproOne>
        </div>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import costpro from "@/components/costProfit/index";
import costproOne from "@/components/costProfitOne/index";
import { topcatePage, topcateTotal } from "@/api/system/cost";
export default {
  components: { costpro, costproOne },
  data() {
    return {
      radio: "1",
      //原料类别列表 表头列表
      AnalysisENDList: [
        {
          label: "实际成本/元",
          children: [
            { label: "本期", props: "realCostCurrent" },
            { label: "上期", props: "realCostUpper" },
          ],
        },
        {
          label: "标准成本/元",
          children: [
            { label: "本期", props: "standardCostCurrent" },
            { label: "上期", props: "standardCostUpper" },
          ],
        },
        {
          label: "损益金额/元",
          children: [
            { label: "本期", props: "prolossCostCurrent" },
            { label: "上期", props: "prolossCostUpper" },
          ],
        },
        {
          label: "损益率",
          children: [
            { label: "本期", props: "prolossRateCurrent" },
            { label: "上期", props: "prolossRateUpper" },
          ],
        },
      ],
    };
  },
  created() {
    // /SubclassAnalysis/SubclassProfit 子类损益分析
    // /SubclassAnalysis/SubclassProfit/subclass-department 各部门该类损益分析
    // /SubclassAnalysis/SubclassProfit/subclass-department/sku-detail 该spu各部门用料sku明细
    // /SubclassAnalysis/SubclassCategory 各部门该类损益分析
    // /SubclassAnalysis/SubclassCategory/sup-detail 该spu各部门用料sku明细
  },
  methods: {},
};
</script>

<style lang="scss" scoped>
.clas_All {
  // margin: 20px;
  margin-left: 20px;
  margin-right: 20px;
}
</style>
